package com.zyj.order.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.zyj.order.common.api.CommonResult;
import com.zyj.order.dto.ProductDTO;
import com.zyj.order.service.ProductService;
import com.zyj.order.vo.ProductVO;

@RestController
public class ProductController {

	@Autowired
	private ProductService productService;
	
	@GetMapping("/api/findProduct")
	public CommonResult<ProductVO> findProduct(@RequestBody ProductDTO dto) {
		CommonResult<ProductVO> target = productService.findProduct(dto);
		return target;
	}
}
